package org.szy.plugin.dev.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryWrapper;
import org.noear.solon.data.annotation.Tran;
import org.szy.core.common.page.QueryPage;
import org.szy.core.common.service.BaseService;
import org.szy.core.common.param.CommonStatusParam;
import org.szy.plugin.dev.entity.DevMessage;
import org.szy.plugin.dev.param.DevMessageQueryParam;

import java.io.Serializable;
import java.util.List;

/**
 * 开发-站内消息Service接口
 *
 * @author wangbuhao
 * @since 2023-06-28 18:17:41
 **/
public interface DevMessageService extends BaseService<DevMessage> {

    /**
     * 获取开发-站内消息查询Wrapper
     *
     * @author wangbuhao
     * @since 2023-06-28 18:17:41
     */
    QueryWrapper qwByQuery(DevMessageQueryParam param);

    /**
     * 获取开发-站内消息分页
     *
     * @author wangbuhao
     * @since 2023-06-28 18:17:41
     */
    Page<DevMessage> page(QueryPage<DevMessage> page, DevMessageQueryParam param);

    /**
     * 删除开发-站内消息
     *
     * @author wangbuhao
     * @date 2023/02/25 11:40
     */
    @Tran
    boolean delete(Long id);

    /**
     * 发布
     */
    boolean release(Long id);
}
